<template>
  <div class="keywordSetting-content padding10">
    <el-form label-width="90px" size="mini">
      <el-row>
        <el-col :span="5">
          <el-form-item label="是否打开:">
            <el-switch v-model="keywordSetting.open" />
          </el-form-item>
        </el-col>
        <el-col :span="5">
          <el-form-item label="智能润色:">
            <el-switch v-model="keywordSetting.smartReply.open" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-form-item label="润色内容:">
        <el-input type="textarea" v-model="keywordContent" :autosize="{ minRows: 5, maxRows: 8 }"
          placeholder="请输入关键字回复">
        </el-input>
      </el-form-item>
      <el-form-item label="屏蔽词:">
        <el-input type="textarea" v-model="keywordSetting.blockWords" :autosize="{ minRows: 5, maxRows: 8 }"
          placeholder="请输入屏蔽词">
        </el-input>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  name: 'KeywordSetting',
  data() {
    return {
      keywordContent: '',
    };
  },
  props: {
    content: {
      type: String,
      default: '',
    },
  },
  watch: {
    content: {
      handler(val) {
        this.keywordContent = val;
      },
      immediate: true
    }
  },
  created() {
  },
  computed: {
    keywordSetting() {
      return this.pageConfig.keywordSetting;
    },
    pageConfig() {
      return this.$store.state.page.config;
    }
  },
  methods: {
  }
};
</script>

<style lang="scss" scoped></style>
